package com.youlu.campus.activity.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 活动抽奖配置 实体类
 *
 * @Description: ActivityLotteryConfig
 * @Date 2025/7/31
 * @module ActivityLotteryConfig
 * @author: su
 */
@Data
@Document(collection = "activity_lottery_config")
public class ActivityLotteryConfig {

    @Id
    private String id;

    @Indexed
    @NotNull(message = "活动id不能为空")
    private String activityId;// 活动ID

    /**
     * 邀请任务id
     */
    private String taskId;

    /**
     * 邀请 赠送贡献值
     */
    private Integer invitePoints = 0;

    /**
     * 点数别名
     */
    private String pointsAlias;

    /**
     * 抽奖消耗积分/贡献值
     */
    private Integer points;

    /**
     * 每日抽奖次数限制
     */
    private Integer dailyDrawLimit;

    /**
     * 活动客服二维码
     */
    private String customerService;

    /**
     * 奖品赠送数量
     */
    private List<ActivityLotteryGiftNum> giftNums;

    private LocalDateTime createTime; // 创建时间

    private LocalDateTime updateTime; // 更新时间

    /**
     * 是否开启抽奖 0-禁用 1-开启
     */
    private Integer status;
}
